﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="Manage_EditUser" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                var ds = [{ 'Controller': '#<%=UserID.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入用户名。',
                    'Clear': true,
                    'Focus': true
                }, { 'Controller': '#<%=UserName.ClientID %>',
                    'Type': 'R',
                    'ErrorMessage': '请输入用户姓名。',
                    'Clear': true,
                    'Focus': true
                }];

                return Cms_ValidateForm(ds);
            });
        });
    </script></asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">用户名：</td>
            <td align="center"><asp:TextBox ID="UserID" runat="server" Width="300px" CssClass="text"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">用户姓名：</td>
            <td align="center"><asp:TextBox ID="UserName" runat="server" Width="300px" CssClass="text"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="保存" CssClass="Button" 
                    onclick="Save_Click" /></td>
        </tr>
    </table>
</asp:Content>

